<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core">

<ui:composition template="/templates/templateMain.xhtml">

   <ui:define name="content">
   
   
		<h:form>
			<h:panelGrid columns="3">
				<h:outputLabel value="nombre" />
				<h:inputText id="text" value="#{registroBean.userName}" />
				<h:outputLabel />
				<h:outputLabel value="Password " />
				<h:inputSecret id="password" value="#{registroBean.password}" />
				<h:commandButton id="submit" action="#{registroBean.validarUsario}"
					value="Ingresar" class="btnLogin" />
				<h:outputText value="Usuario incorrecto #{registroBean.userName}."
					rendered="#{not empty registroBean.userName}" />
			</h:panelGrid>
		</h:form>
	</ui:define>
	
</ui:composition>

</html>